<form id="auto-data-form" action="msg/saveOrUpdate" class="form-horizontal bv-form" method="post" role="form">
			<div style="display: none;">
				<input id="model.id" name="model.id" value="#(model.id)" placeholder="邮件主键" type="hidden" />
				<input id="msg_action" name="msg_action" value="" placeholder="操作类型" type="hidden" />
			</div>
	<div class="nav-tabs-custom">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="true">基本信息</a></li>
            <li class=""><a id="atta_tab" href="#tab_2" data-toggle="tab" aria-expanded="false">邮件附件</a></li>
		</ul>
		<div class="tab-content">
		    <div class="tab-pane active" id="tab_1">
				<div class="form-group">
					<label for="model.toName" class="col-sm-2 control-label">收件人</label>
					<div class="col-sm-10">
						<input id="model.toId" name="model.toId" value="#(model.toId)" placeholder="接收人主键"  type="hidden" />
						<input id="model.toName" name="model.toName" value="#(model.toName)" placeholder="接收人名称" class="form-control input-md auto-tree-select"
						 data-node-id="model.toId" data-node-name="model.toName" data-uri="user/children" data-text="#(model.toName)" data-select-multi="true" maxlength="1024">
					</div>
				</div>
				
				<div class="form-group">
					<label for="model.ccName" class="col-sm-2 control-label">抄送</label>
					<div class="col-sm-10">
						<input id="model.ccId" name="model.ccId" value="#(model.ccId)" placeholder="抄送主键" type="hidden" >
						<input id="model.ccName" name="model.ccName" value="#(model.ccName)" placeholder="抄送名称" class="form-control input-md auto-tree-select" 
						 data-node-id="model.ccId" data-node-name="model.ccName" data-uri="user/children" data-text="#(model.ccName)" data-select-multi="true" maxlength="1024">
					</div>
				</div>
				
				<div class="form-group">
					<label for="model.subject" class="col-sm-2 control-label">主题</label>
					<div class="col-sm-8">
						<input id="model.subject" name="model.subject" value="#(model.subject)" placeholder="邮件主题" class="form-control input-md" required maxlength="256"/>
					</div>
					<div class="col-sm-2">
						<div class="checkbox checkbox-warning">
			                <input id="model.flag" name="model.flag"  value="1"  type="checkbox"  #if(model.flag) checked #end />
							<label for="model.flag" class="checked">重要</label>
						</div>
					</div>
				</div>
				<div class="line"></div>
				<div class="form-group">
					<div class="col-sm-12">
						<textarea id="model.content" name="model.content" placeholder="邮件正文" class="form-control input-md auto-editor" >#(model.content)</textarea>
					</div>
				</div>
			</div>	
            <div class="tab-pane" id="tab_2">
				<div class="form-group">
					<div class="col-sm-12">
						<input id="msg_atta" name="msg_atta" data-title="邮件附件" data-data-id="#(model.id)" data-image="false" data-file-num-limit="5" data-callback="" class="auto-file"/>
					</div>
				</div>	
            </div>			
		</div>	
	</div>		
</form>
<script type="text/javascript">
	$(document).ready(function() {
		$("#atta_tab").click(function(){//刷新选择文件按钮的大小
			refreshUploader($($(this).attr("href")));
		});  		
	});
</script>